<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
$this->title = '设置考试';
?>

<?php $form = ActiveForm::begin(['method'=>'post','action'=>'']) ?>
    <?= $form->field($setmodel,'classid')->label('班级')->dropdownList($res);
    ?>
    <?= $form->field($setmodel,'paperid')->label('选择试卷')->dropdownList($paper); ?>
    <?= $form->field($setmodel, 'tips')->label('备注')->textInput() ?>

    <label>
        <h5 style="font-weight: bold;">开考时间</h5>
        <input name="Setexamination[starttime]" type="datetime-local">
    </label>
    <div class="form-group">
            <?= Html::submitButton('提交', ['class' => 'btn btn-primary']) ?>
    </div>
<?php ActiveForm::end(); ?>



